package info.peigen.hotpot.common.core.logging.logback;

import ch.qos.logback.classic.spi.LoggingEvent;
import ch.qos.logback.core.rolling.RollingFileAppender;

/**
 * <b>(HotpotRollingFileAppender)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2022/12/4
 */
@SuppressWarnings({"unused", "rawtypes", "unchecked"})
public class HotpotRollingFileAppender extends RollingFileAppender {

    @Override
    protected void subAppend(Object event) {
        HotpotDesensitizationAppender appender = new HotpotDesensitizationAppender();
        appender.operation((LoggingEvent) event);
        super.subAppend(event);
    }
}